$(document).ready(function(){
	$("#status").change(function(){
		var status = $("#status").val();
		if (status == "Perpanjang"){
			var id = $("#id").val();
			$.ajax({
				url: "module/mod_jaminan/js/kode.php",
				data: "id="+id,
				cache: false,
				success: function(msg){
					$("#kode_lama").html(msg);
					$('#kode_lama').show('slow');
				}
			});
		}else if(status == "Baru"){
			$('#kode_lama').hide('slow');
		}
	});
});
	